import request from '@/utils/request'

// 获取企业数据
export function getapprovallist(data) {
  return request({
    url: '/zxqyfw/web/publishMessage/getList',
    method: 'get',
    params: data
  })
}
//  融资需求留言数量
export function countConsult() {
  return request({
    url: '/zxqyfw/web/publishMessage/countConsult',
    method: 'get',
  })
}
// 招聘用工数量
export function countOpinion() {
  return request({
    url: '/zxqyfw/web/publishMessage/countOpinion',
    method: 'get',
  })
}
// 行政协调数量
export function countComplaint() {
  return request({
    url:'/zxqyfw/web/publishMessage/countComplaint',
    method:'get',
  })
}
//其它事项
export function otherthings() {
  return request({
    url:'/zxqyfw/web/publishMessage/countOther',
    method:'get',
  })
}
//  总数
export function countPublishMessage() {
  return request({
    url: '/zxqyfw/web/publishMessage/countPublishMessage',
    method: 'get',
  })
}
//  用户总数
export function getthreesum(data) {
  return request({
    url: '/zxqyfw/web/applicationReview/countStatus',
    method: 'post',
    params: data
  })
}
// 三报平台申报状态
export function countMainStatus(data) {
  return request({
    url: '/zxqyfw/web/applicationReview/countMainStatus',
    method: 'post',
    params: data
  })
}
// 三报平台申报列表
export function getthreelist(data) {
  return request({
    url: '/zxqyfw/web/applicationReview/getList',
    method: 'get',
    params: data
  })
}
// 平台申报详情
export function getDeclarationInformation(data) {
  return request({
    url: '/zxqyfw/web/applicationReview/getDeclarationInformation',
    method: 'post',
    params: data
  })
}
// 申报模糊查询
export function getQyUserByUsername(data) {
  return request({
    url: '/zxqyfw/web/applicationReview/getQyUserByUsername',
    method: 'get',
    params: data
  })
}
export function getQyUserRzjgByUsername(data) {
  return request({
    url:'/zxqyfw/web/applicationReview/getQyUserRzjgByUsername',
    method:'get',
    params:data
  })
}
// 副表审批
export function declarationInformation(data) {
  return request({
    url:'/zxqyfw/pub/mainApprovalDetails/declarationInformation',
    method:'post',
    params:data
  })
}
// 主表审批
export function applicationReview(data) {
  return request({
    url:'/zxqyfw/pub/mainApprovalDetails/applicationReview',
    method:'post',
    params:data
  })
}
//根据文件id查询原始名称
// /pub/fileUploadRecord/getFileName
export function getFileName(data){
  return request({
    url:'/zxqyfw/pub/fileUploadRecord/getFileName',
    method:'get',
    params:data
  })
}
// 根据类型查年审
export function yearapproval(data){
  return request({
    url:'/zxqyfw/web/annualExamination/getAdminList',
    method:'post',
    params:data
  })
}
//副表审批
export function secondary(data){
  return request({
    url:'/zxqyfw/web/annualExamination/passAnnualExaminationDetails',
    method:'post',
    params:data
  })
}
//主表审批
export function mainTable(data){
  return request({
    url:'/zxqyfw/web/annualExamination/passAnnualExamination',
    method:'post',
    data
  })
}
//年审查看详情
export function checkoutdetail(data){
  return request({
    url:'/zxqyfw/web/annualExamination/getAnnualExaminationInformation',
    method:'post',
    params:data
  })
}
//附表审批
export function passAnnual(data){
  return request({
    url:'/zxqyfw/web/annualExamination/passAnnualExaminationDetails',
    method:'post',
    data
  })
}
// 年审总数
// /zxqyfw/web/annualExamination/count
export function yearcount(data){
  return request({
    url:'/zxqyfw/web/annualExamination/count',
    method:'post',
    params:data
  })
}
//年审模糊查询
export function yearselectLike(data){
  return request({
    url:'/zxqyfw/web/annualExamination/selectLike',
    method:'post',
    params:data
  })
}
// 入住机构年审模糊查询
export function yearselectLikeRz(data){
  return request({
    url:'/zxqyfw/web/annualExamination/selectLikeRz',
    method:'post',
    params:data
  })
}